// 用户信息的小仓库
import { getToken, setToken } from "@/utils/auth";

export default {
  namespaced: true,
  state: {
    token: getToken() || " ",
  },
  mutations: {
    SET_TOKEN(state, payload) {
      state.token = payload;
      setToken(payload);
    },
  },
};
